package com.example.ssm.service.impl;

import com.example.ssm.bean.Department;
import com.example.ssm.dao.DepartmentMapper;
import com.example.ssm.service.DepartmentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Intellij IDEA.
 * User: JonnyJiang
 * Date: 2021/6/7
 */

@Service
public class DepartmentServiceImpl implements DepartmentService {

    @Resource
    DepartmentMapper departmentMapper;

    @Override
    public List<Department> getDep() {
        return departmentMapper.selectByExample(null);
    }
}
